package com.physics.mps.module.comsol.vo;

import lombok.*;

import java.io.Serializable;
import java.util.Map;

/**
 * @author mcsoft
 * @date 2023/10/16 10:51
 * @description 材料参数
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class MaterialVo extends SelectVo implements Serializable {


    /**
     * 材料属性
     */
    private Map<String, String> properties;


    public MaterialVo(Integer entityDim, CoordinateVo coordinate, Map<String, String> properties) {
        this.entityDim = entityDim;
        this.coordinate = coordinate;
        this.properties = properties;
    }

    /**
     * 默认为域
     * @return
     */
    public Integer getEntityDim() {
        return entityDim==null? 3: entityDim;
    }
}
